package com.angel.service.ServiceImpl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.angel.bean.ConsumeRecord;
import com.angel.mapper.ConsumeRecordDao;
import com.angel.service.ConsumeRecordService;

@Service
public class ConsumeRecordServiceImpl implements ConsumeRecordService{

    @Resource
    private ConsumeRecordDao consumeRecordDao;

    @Override
    public int insert(ConsumeRecord consumeRecord){
        return consumeRecordDao.insert(consumeRecord);
    }

    @Override
    public int insertSelective(ConsumeRecord consumeRecord){
        return consumeRecordDao.insertSelective(consumeRecord);
    }

    @Override
    public int insertList(List<ConsumeRecord> consumeRecords){
        return consumeRecordDao.insertList(consumeRecords);
    }

    @Override
    public int update(ConsumeRecord consumeRecord){
        return consumeRecordDao.update(consumeRecord);
    }
}
